import {v4 as uuidv4} from 'uuid'

// 生成一个随机字符串，且每次执行不能发生变化，游客身份持久存储
export const getUUID = ()=>{
    if(localStorage.getItem('uuid_token')){
    }else{
        localStorage.setItem('uuid_token',uuidv4())
    }
    return localStorage.getItem('uuid_token')
}